<?php 
require_once('conn.php');
 include_once('datediff.php');
$sql_dj="select * from $tb_dj where id='1' ";
$cn_dj=mysql_db_query($db_name,$sql_dj);
$row_dj = mysql_fetch_row($cn_dj); 

//$days=$row_dj[2];
$mbdate=$row_dj[3];

//mysql_free_result($cn_dj);
$currentdate =date('Y-m-d');

$cadays=datediff('d',$currentdate,$mbdate);

/* if($cadays>0){
$days+=$cadays;

//$sql_up="UPDATE `$tb_dj` SET `currentdate` = '$currentdate',`qnsyts` = '$qnsyts', WHERE `id` = '1'";
//$cn_up = mysql_db_query($db_name,$sql_up);

} */
//echo $row_dj[2];
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<table width="100%" height="88"  border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="49"><img src="images/djsp.jpg" width="191" height="49"></td>
      </tr>
      <tr class="aq_mibg">
        <td height="180" align="center">
		


<table width="100%"  border="0" cellspacing="6" cellpadding="0">
  <tr>
    <td colspan="2" align="center" class="djs_head">年度总任务</td>
  </tr>
  <tr>
    <td colspan="2" align="center" class="djs_text"><?php echo $row_dj[1] ?>万TEU</td>
  </tr>
  <tr>
    <td colspan="2" align="center" class="djs_head">全年剩余天数</td>
  </tr>
  <tr>
    <td colspan="2" align="center" class="djs_text"><?php echo $cadays ?>天</td>
  </tr>
  <tr>
    <td colspan="2" align="center" class="djs_head">距年底日均需办理</td>
  </tr>
  <tr>
    <td colspan="2" align="center" class="djs_text"><?php echo $row_dj[2] ?>TEU/天</td>
  </tr>
</table>
	</td>
      </tr>
      <tr>
        <td><img src="images/xia.gif" width="191" height="14"></td>
      </tr>
    </table>